package com.yzh.oop4;

public  class MyClass implements MyInterface {

    @Override
    public void method1() {
        System.out.println("实现接口的方法");
    }

    @Override
    public void method3() {
        System.out.println("重写接口可重写的方法");
    }

    public static void main(String[] args) {
        MyInterface.method2();
        MyClass myClass = new MyClass();
        myClass.method1();
        myClass.method3();
    }
}
